import url from "@/url.config"
export default ({ service, request, tools}) => ({
    informationAdd(data){
        // 综合资料新增
        return request({
            url: url.ip2+"/info/save",
            method: "post",
            data: data
        })
    },
    inquire_Data(data){
        // 综合资料新增
        return request({
            url: url.ip2+"/info/findByPage",
            method: "post",
            data: data
        })
    },
    delete_Data(id){
        // 综合资料删除
        return request({
            url: url.ip2+`/info/remove/${id}`,
            method: "delete",
        })
    },
    look_Data(id){
        // 综合资料删除
        return request({
            url: url.ip2+`/info/detail/${id}`,
            method: "get",
        })
    },
    edit_Data(data){
        //编辑资料
        return request({
            url: url.ip2+"/info/edit",
            method: "post",
            data: data
        })
    },
    hot_newData(data){
        //最新十条资料
        return request({
            url: url.ip2+`/info/info/hot/${data}`,
            method: "get",
        })
    },
    upload_Data(data){
        //上传资料
        return request({
            url: url.ip2+"/file/uploadFile",
            method: "post",
            data: data
        })
    },
    //单文件上传
    PostuploadFile(data){
        return request({
            url: url.ip3+"/file/uploadFile",
            method: "post",
            data: data
        })
    },
    //多文件上传
    PostuploadFiles(data){
        return request({
            url: url.ip3+"/file/uploadFiles",
            method: "post",
            data: data
        })
    },
        
	
})